<?= Form::open(['id' => 'listBtnInfoForm']) ?>

	<input type="hidden" name="record_id" value="<?= $listBtnParams['record_id'] ?>">

	<?php if (!$this->fatalError): ?>

			<div class="modal-header">
				<button type="button" class="close" data-dismiss="popup">&times;</button>
				<h4 class="modal-title"><?= $listBtnParams['prompt_title'] ?></h4>
			</div>

			<div class="modal-body">
				<?= $listBtnInfoFormWidget->render() ?>
			</div>
			
			<div class="modal-footer">
				<button
					type="button"
					class="btn btn-default oc-icon-times"
					data-dismiss="popup">
					返回
				</button>
			</div>

	<?php else: ?>

		<div class="modal-body">
			<p class="flash-message static error"><?= e(trans($this->fatalError)) ?></p>
		</div>
		<div class="modal-footer">
			<button
				type="button"
				class="btn btn-default oc-icon-times"
				data-dismiss="popup">
				<?= e(trans('backend::lang.form.close')) ?>
			</button>
		</div>

	<?php endif ?>

	<script>
		setTimeout(
			function(){ $('#listBtnPromptForm input.form-control:first').focus() },
			310
		)
	</script>

<?= Form::close() ?>